# coding=utf-8
from optparse import make_option
from django.core.management.base import BaseCommand
from blwpy.settings import MEDIA_ROOT
from crawler.crawlers import CrawlerComputrabajo, CrawlerZonaJobs


class Command(BaseCommand):
    option_list = BaseCommand.option_list + (
        make_option('--long', '-l', dest='long',
            help='init crawlers sites.'),
    )
    help = 'Help text goes here'

    def handle(self, **options):
        print MEDIA_ROOT
        print "crawler zonajobs.com.ar"
        zonaJobs = CrawlerZonaJobs()
        zonaJobs.begin('/empleos/','/trabajo=')
        pass
        